package com.interview.rtc.aigc.common;

/**
 * 错误码常量类
 * 统一管理错误码和错误信息
 */
public interface ErrorCode {
    
    /**
     * 成功
     */
    int SUCCESS = 200;
    
    /**
     * 参数错误
     */
    int PARAM_ERROR = 400;
    
    /**
     * 未授权
     */
    int UNAUTHORIZED = 401;
    
    /**
     * 禁止访问
     */
    int FORBIDDEN = 403;
    
    /**
     * 资源不存在
     */
    int NOT_FOUND = 404;
    
    /**
     * 方法不允许
     */
    int METHOD_NOT_ALLOWED = 405;
    
    /**
     * 服务器内部错误
     */
    int SERVER_ERROR = 500;
    
    /**
     * 服务不可用
     */
    int SERVICE_UNAVAILABLE = 503;
    
    /**
     * 用户相关错误码：10001-19999
     */
    int USER_NOT_EXIST = 10001;
    int USER_PASSWORD_ERROR = 10002;
    int USER_ACCOUNT_LOCKED = 10003;
    int USER_ACCOUNT_DISABLED = 10004;
    int USER_ALREADY_EXIST = 10005;
    
    /**
     * 会话相关错误码：20001-29999
     */
    int SESSION_NOT_EXIST = 20001;
    int SESSION_ALREADY_EXIST = 20002;
    int SESSION_CREATE_FAILED = 20003;
    
    /**
     * 验证码相关错误码：30001-39999
     */
    int VERIFY_CODE_ERROR = 30001;
    int VERIFY_CODE_EXPIRED = 30002;
    int VERIFY_CODE_USED = 30003;
    
    /**
     * RTC相关错误码：40001-49999
     */
    int RTC_CONNECTION_ERROR = 40001;
    int RTC_ROOM_NOT_EXIST = 40002;
    int RTC_ROOM_FULL = 40003;
} 